package com.cucn.common.constant.order;

/**
 * @author KouChaoJie
 * @since: 2022/1/27 13:55
 */
public class OrderRabbitMqConstant {
    /**
     * 订单死信队列
     */
    public static final String ORDER_DELAY_QUEUE = "order.delay.queue";
    /**
     * 订单mq交换机
     */
    public static final String ORDER_EVENT_EXCHANGE = "order-event-exchange";
    /**
     * 订单服务处理死信消息的队列
     */
    public static final String ORDER_RELEASE_ORDER_QUEUE = "order.release.order.queue";
    /**
     * 订单服务处理死信消息路由键
     */
    public static final String ORDER_RELEASE_ORDER_ROUTING_KEY = "order.release.order";
    /**
     * 订单服务接收死信消息路由键
     */
    public static final String ORDER_CREATE_ORDER_ROUTING_KEY = "order.create.order";
    /**
     * 订单释放转发到库存release队列路由键
     */
    public static final String ORDER_RELEASE_OTHER_ROUTING_KEY = "order.release.other.#";
    /**
     * 死信消息的过期时间
     */
    public static final int X_MESSAGE_TTL = 60000;
}
